package com.wyg.composite.factory;

import com.wyg.composite.duck.*;

/**
 * @description:    创建没有被装饰者装饰的鸭子
 * @author: WYG
 * @time: 2021/4/10 21:37
 */

public class DuckFactory extends AbstractDuckFactory{
    @Override
    public Quackable createMallardDuck() {
        return new MallardDuck();
    }

    @Override
    public Quackable createReadheadDuck() {
        return new ReadheadDuck();
    }

    @Override
    public Quackable createDuckCall() {
        return new DuckCall();
    }

    @Override
    public Quackable createRubberDuck() {
        return new RubberDuck();
    }
}
